(function() {
    'use strict';

    angular
        .module('travelApp')
        .factory('OpinionSearch', OpinionSearch);

    OpinionSearch.$inject = ['$resource'];

    function OpinionSearch($resource) {
        var resourceUrl =  'api/_search/opinions/:id';

        return $resource(resourceUrl, {}, {
            'query': { method: 'GET', isArray: true}
        });
    }
})();
